package com.example.rouroudate.ui.slideshow

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.appcompat.content.res.AppCompatResources
import androidx.core.content.ContextCompat
import com.example.rouroudate.R
import com.example.rouroudate.databinding.ActivitySlideshowBinding
import com.example.rouroudate.ui.widget.BaseActivity
import com.example.rouroudate.util.DisplayUtils
import com.example.rouroudate.util.PrefManager
import com.example.rouroudate.util.StatusBarUtils

class SlideshowActivity : BaseActivity() {
    private lateinit var binding: ActivitySlideshowBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivitySlideshowBinding.inflate(layoutInflater)
        setContentView(binding.root)
        initView()
    }

    private fun initView() {
        binding.titleBar.apply {
            titleTv.setTextColor(ContextCompat.getColor(this@SlideshowActivity, R.color.pink))
            titleTv.text = getString(R.string.menu_slideshow)
            leftView.background =
                AppCompatResources.getDrawable(this@SlideshowActivity, R.drawable.ic_back)
            leftView.setOnClickListener {
                finish()
            }
        }
    }
}